/*****************************************************************************
 * Copyright (c) 2010 -, Anders All rights reserved
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 *  Contact: Anders Uddenberg (anders.uddenberg@gmail.com)
 * 
 *
 ****************************************************************************/
package org.easypr.organizer.shared;

import java.io.Serializable;

// TODO: Auto-generated Javadoc
/**
 * The Class MyUser.
 */
@SuppressWarnings("serial")
public class MyUser implements Serializable {

	/** The name. */
	private String name;
	
	/** The email. */
	private String email;
	
	/** The nickname. */
	private String nickname; // from google
	
	/** The cellphone. */
	private String cellphone;
	
	/** The workphone. */
	private String workphone;
	
	/** The workplace. */
	private String workplace;
	
	/** The logout url. */
	private String logoutURL;
	
	/** The is user. */
	private boolean isUser = false;
	
	/** The access token. */
	private String accessToken;
	
	/** The O auth token secret. */
	private String OAuthTokenSecret;
	
	/**
	 * Instantiates a new my user.
	 */
	public MyUser() {
		
	}
	
	/**
	 * Instantiates a new my user.
	 *
	 * @param name the name
	 * @param email the email
	 * @param nickname the nickname
	 */
	public MyUser(String name, String email, String nickname) {
		this.name = name;
		this.email = email;
		this.nickname = nickname;
	}
	
	/**
	 * Sets the is registered.
	 */
	public void setIsRegistered() {
		this.isUser = true;
	}
	
	/**
	 * Sets the o auth token secret.
	 *
	 * @param secret the new o auth token secret
	 */
	public void setOAuthTokenSecret(String secret) {
		this.OAuthTokenSecret = secret;
	}
	
	/**
	 * Gets the o auth token secret.
	 *
	 * @return the o auth token secret
	 */
	public String getOAuthTokenSecret() {
		return this.OAuthTokenSecret;
	}
	
	/**
	 * Sets the access token.
	 *
	 * @param token the new access token
	 */
	public void setAccessToken(String token) {
		this.accessToken = token;
	}
	
	/**
	 * Gets the access token.
	 *
	 * @return the access token
	 */
	public String getAccessToken() {
		return this.accessToken;
	}
	
	/**
	 * Checks if is registered.
	 *
	 * @return true, if is registered
	 */
	public boolean isRegistered() {
		return this.isUser;
	}
	
	/**
	 * Sets the logout url.
	 *
	 * @param logoutURL the new logout url
	 */
	public void setLogoutURL(String logoutURL) {
		this.logoutURL = logoutURL;
	}
	
	/**
	 * Sets the cellphone.
	 *
	 * @param cellphone the new cellphone
	 */
	public void setCellphone(String cellphone) {
		this.cellphone = cellphone;
	}
	
	/**
	 * Gets the cellphone.
	 *
	 * @return the cellphone
	 */
	public String getCellphone() {
		return this.cellphone;
	}
	
	/**
	 * Sets the workphone.
	 *
	 * @param workphone the new workphone
	 */
	public void setWorkphone(String workphone) {
		this.workphone = workphone;
	}
	
	/**
	 * Gets the workphone.
	 *
	 * @return the workphone
	 */
	public String getWorkphone() {
		return this.workphone;
	}
	
	/**
	 * Sets the workplace.
	 *
	 * @param workplace the new workplace
	 */
	public void setWorkplace(String workplace) {
		this.workplace = workplace;
	}
	
	/**
	 * Gets the workplace.
	 *
	 * @return the workplace
	 */
	public String getWorkplace() {
		return this.workplace;
	}
	
	/**
	 * Gets the logout url.
	 *
	 * @return the logout url
	 */
	public String getLogoutURL() {
		return this.logoutURL;
	}
	
	/**
	 * Gets the name.
	 *
	 * @return the name
	 */
	public String getName() {
		return this.name;
	}
	
	/**
	 * Gets the email.
	 *
	 * @return the email
	 */
	public String getEmail() {
		return this.email;
	}
	
	/**
	 * Gets the nickname.
	 *
	 * @return the nickname
	 */
	public String getNickname() {
		return this.nickname;
	}
	
	
}
